//% extends .Oboe.oboe.Controller

function ModeB()
{
    var text = new Text("Honky Dory!", "36px Arial", "#0000FF");
    text.x = 160;
    text.y = 300;

    this.Super(text);
    var acc = 0;

    trace("Mode B");

    //% slot
    this.onTick = function(t){
        acc += t;
        if( acc >= 1 )
            this.signalUp("onClickModeB");
    };

    this.onEnterState = function(){ acc=0; };
}